﻿#include "dialog3.h"
#include "ui_dialog3.h"

Dialog3::Dialog3(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Dialog3)
{
    ui->setupUi(this);

    t3 = new TestThread3();
    connect(t3,&TestThread3::TestSignal,this,&Dialog3::DisplayMsg);
}

Dialog3::~Dialog3()
{
    delete ui;
}

void Dialog3::on_pushButton_clicked()
{
    t3->start();
}


void Dialog3::on_pushButton_2_clicked()
{
    t3->terminate();
}

void Dialog3::DisplayMsg(int num)
{
    ui->progressBar->setValue(num);
}
